package com.shuang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.shuang.mapper.DbOrderRecordMapper;
import com.shuang.pojo.DbOrderRecord;
import com.shuang.pojo.DbOrderRecordExample;
import com.shuang.pojo.DbOrderRecordExample.Criteria;
import com.shuang.service.DbOrderRecordService;
@Service("dbOrderRecordService")
public class DbOrderRecordServiceImpl implements DbOrderRecordService {

	@Resource(name="dbOrderRecordMapper")
	private DbOrderRecordMapper dbOrderRecordMapper;
	@Override
	public List<DbOrderRecord> selRecordByOId(Long getoId) {
		DbOrderRecordExample example=new DbOrderRecordExample();
		Criteria criteria = example.createCriteria();
		criteria.andOIdEqualTo(getoId);
		List<DbOrderRecord> result = dbOrderRecordMapper.selectByExample(example);
		
		return result;
	}

}
